import os


class MyFile:
    def __init__(self):
        self.dir = './static/upload/'

    def file_mkdir(self, dirname):
        path = self.dir + str(dirname)
        if not os.path.exists(path):
            os.mkdir(path)

    def list_dir(self, dirname):
        path = self.dir + str(dirname)
        list1 = os.listdir(path)
        return list1
 

myfile = MyFile()
# myfile.file_mkdir(1)
# list = myfile.list_dir(1)
# print(list)
